package com.guli.auth.feign;

import com.guli.common.to.SmsCode;
import com.guli.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Repository
@FeignClient("third-party-service")
public interface SmsFeign {

    @PostMapping("/sms/sendcode")
     R code(@RequestBody SmsCode smsCode);
}
